package com.qf.springboot2.conf;

import com.qf.springboot2.pojo.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Import;

//@Configuration
/*
    @Import
       ① 导入普通类，生成对象注入到springioc容器中
       ② 导入ImportSelector类，向spring ioc容器中注入的对象由ImportSelector类中的方法返回的
       ③ 导入ImportBeanDefinitionRegistrar类，向spring ioc容器中注入的对象由ImportBeanDefinitionRegistrar类中的方法返回的
 */
//@Import(Student.class)
//@Import(MyImportSelector.class)
//@Import(MyIBDR.class)
//@EnableStu
public class BeanConfig {

//    @Bean
    public Student stu(){
        return new Student();
    }
}
